<template>
	<view class="container">
		<view class="search">
			<uni-search-bar class="searchbar" @confirm="search" @input="input" v-model="searchValue" placeholder="搜索"
				cancelButton="none"></uni-search-bar>
		</view>
		<view class="czr_table" v-for="(item,index) in czrlist" :key="index">
			<view class="czr_top">
				<view class="czr_left">
					<view class="czr_xq">
						{{item.companyName}}
					</view>
					<view class="czr_msg">
						<view class="msg1 msg">
							<text>出资人：</text>
							<text>{{item.userRealName}}</text>
						</view>
						<text class="msg1">联系电话：{{item.linkPhone}}</text>
						<text class="msg1">详细地址：{{item.address}}</text>
					</view>
				</view>
				<view class="czr_right">
					<image src="../../../static/image/cause/9.png" mode=""></image>
				</view>
			</view>
			<view class="xian"></view>
			<view class="czr_btm">
				<view class="czr_btml">
					<text>已安装数量（台）：</text>
					<text class="czrnum">{{item.deviceInstall}}</text>
				</view>
				<view class="xians"></view>
				<view class="czr_btmr">
					<text>设备总数（台）：</text>
					<text class="czrnum">{{item.deviceTotal}}</text>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	import $http from "@/ajax/http.js";
	export default {
		data() {
			return {
				czrlist: []
			}
		},
		onLoad() {
			this.getBuyerList();
		},
		methods: {
			getBuyerList() {
				$http.request({
					url: "/work/index/getBuyerList",
					method: "GET"
				}).then((res) => {
					console.log(res, "出资人信息");
					this.czrlist = res
				})
			},

		},
	}
</script>

<style scoped lang="scss">
	@import url('../../../common/sass/all/all.scss');

	.search {
		width: 715rpx;
		height: 73rpx;
		margin-bottom: 23rpx;
	}

	.czr_table {
		width: 678rpx;
		height: 281rpx;
		background: #ffffff;
		border-radius: 25rpx;
		margin-top: 18rpx;

		.czr_top {
			display: flex;
			justify-content: space-around;
		}

		.czr_left {
			margin-top: 30rpx;

			.czr_xq {
				font-size: 26rpx;
				font-weight: 600;
				color: #00828C;
			}

			.czr_msg {
				display: flex;
				flex-direction: column;
				font-size: 22rpx;
				font-weight: 400;
				color: #4C4948;
				line-height: 34rpx;

				.msg {
					margin-top: 23rpx;
				}
			}
		}

		.czr_right {
			width: 131rpx;
			height: 111rpx;
			margin-top: 55rpx;

			image {
				width: 131rpx;
				height: 111rpx;
			}
		}

		.xian {
			position: relative;
			width: 598rpx;
			height: 2rpx;
			background-color: #cbcbcb;
			margin-left: 40rpx;
			margin-top: 18rpx;
		}

		.xians {
			position: relative;
			width: 2rpx;
			height: 40rpx;
			background-color: #cbcbcb;
			margin-left: 15rpx;
		}

		.czr_btm {
			width: 590rpx;
			display: flex;
			justify-content: space-around;
			margin-left: 40rpx;
			margin-top: 16rpx;
			font-size: 26rpx;
			font-weight: 400;
			color: #3E3A39;

			.czrnum {
				font-size: 28rpx;
				font-weight: 500;
				color: #00828C;
			}
		}
	}
</style>